home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
textmenu.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
1KB
|
32 lines
#ifndef __TEXT_MENU_H_
#define __TEXT_MENU_H_
#include "choicebx.h"
class TextMenu : public ChoiceBox
{
public:
TextMenu(rect coordinates, char* fName = "", char* h = "",
char* HOT = NULL, int POS = 1, int START = 1,
char** ITEMSTRINGS = NULL,
rect STATUSPOS = rect(0, 24, 79, 25),
int STATUSTYPE = 0, char** STATUSSTRINGS = NULL,
int* STATUSLIST = NULL,
int res = FIXED, int s = 3, BORDERS b_type = SHOW_BORDER,
BORDERS hdr_b_type = SHOW_BORDER, int pat = 0,
int hdr_pat = 0)
: ChoiceBox(coordinates, fName, h, HOT, POS, START,
loc(1, 1), ITEMSTRINGS, NULL, loc(2, 0), STATUSPOS,
STATUSTYPE, STATUSSTRINGS, STATUSLIST, res, s, b_type,
hdr_b_type, pat, hdr_pat)
{
calcConsts();
}
void set_pos(int p) { pos = p; }
void setItems(); // sets new list of menu positions
virtual void calcItemsNumber();
virtual void showItem();
};
#endif __TEXT_MENU_H_